import React from 'react'
import UserStore from '../../store/modules/userStore'
import { inject,observer } from 'mobx-react'

interface IProps {
    userStore?: UserStore
}
const AutoLogin = (props: IProps) => {
    React.useEffect(() => {
        props.userStore?.getUserInfo()
    },[ ])// eslint-disable-line react-hooks/exhaustive-deps
    return (
        <>
        </>
    )
}

export default inject('userStore')(observer(AutoLogin))